﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataAccessLayer
{
    /// <summary>
    /// 
    /// </summary>
    public class DatabaseDataContext : DataBaseModelDataContext
    {
        private DatabaseDataContext() { }

        private static DatabaseDataContext _instance;

        private static object _syncRoot = new object();

        public static DatabaseDataContext Instance
        {
            get
            {
                if (DatabaseDataContext._instance == null)
                {
                    lock (_syncRoot)
                    {
                        if (DatabaseDataContext._instance == null)
                        {
                            DatabaseDataContext._instance = new DatabaseDataContext();
                        }
                    }
                }
                return DatabaseDataContext._instance;
            }
        }
    }
}
